home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form SortFrm
- BorderStyle = 3 'Fixed Double
- Caption = "Select Sort Field"
- ClientHeight = 2745
- ClientLeft = 3390
- ClientTop = 3825
- ClientWidth = 2940
- ClipControls = 0 'False
- ControlBox = 0 'False
- Height = 3150
- Left = 3330
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 2745
- ScaleWidth = 2940
- Top = 3480
- Width = 3060
- Begin CommandButton cmdCancel
- Caption = "Cancel"
- Height = 315
- Left = 1560
- TabIndex = 8
- Top = 1800
- Width = 1155
- End
- Begin CommandButton cmdOK
- Caption = "OK"
- Height = 315
- Left = 1560
- TabIndex = 7
- Top = 720
- Width = 1155
- End
- Begin OptionButton optRadioButton
- Caption = "Phone"
- Height = 255
- Index = 6
- Left = 180
- TabIndex = 6
- Top = 2340
- Width = 1215
- End
- Begin OptionButton optRadioButton
- Caption = "Area Code"
- Height = 255
- Index = 5
- Left = 180
- TabIndex = 5
- Top = 1980
- Width = 1215
- End
- Begin OptionButton optRadioButton
- Caption = "Zip"
- Height = 255
- Index = 4
- Left = 180
- TabIndex = 4
- Top = 1620
- Width = 1215
- End
- Begin OptionButton optRadioButton
- Caption = "State"
- Height = 255
- Index = 3
- Left = 180
- TabIndex = 3
- Top = 1260
- Width = 1215
- End
- Begin OptionButton optRadioButton
- Caption = "City"
- Height = 255
- Index = 2
- Left = 180
- TabIndex = 2
- Top = 900
- Width = 1215
- End
- Begin OptionButton optRadioButton
- Caption = "Address"
- Height = 255
- Index = 1
- Left = 180
- TabIndex = 1
- Top = 540
- Width = 1215
- End
- Begin OptionButton optRadioButton
- Caption = "Name"
- Height = 255
- Index = 0
- Left = 180
- TabIndex = 0
- Top = 180
- Width = 1215
- End
- Option Explicit
- Dim selected_field As Integer
- Sub cmdCancel_Click ()
- SortForm_OK_or_Cancel = 1
- Unload SortFrm
- End Sub
- Sub cmdOK_Click ()
- SortField = selected_field
- EditFrm.lblCurrentSortField.Caption = optRadioButton(selected_field - 1).Caption
- SortForm_OK_or_Cancel = 0
- Unload SortFrm
- End Sub
- Sub Form_Load ()
- selected_field = SortField
- optRadioButton(selected_field - 1).Value = True
- End Sub
- Sub optRadioButton_Click (Index As Integer)
- selected_field = Index + 1
- End Sub
-